<?php
namespace app\controller;
use app\BaseController;
class Error {
    public function index(){
        return  '当前控制器不存在';
    } 
    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
    public function arrayOutput()
    {
        $data=['a'=>1, 'b'=>2, 'c'=>3];
        halt('中断输出');
        return json($data);
    }
}
?>